package com.anhry.app.safety.manage.oa.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 邮件附件 
 * @author chen
 * @date 2012-8-8
 */
@Entity
@Table(name="TB_OA_MAIL_FJ")
@SequenceGenerator(name="TB_OA_MAIL_FJ_SEQ", sequenceName="TB_OA_MAIL_FJ_SEQ_DB", allocationSize=1)
public class TbOaMailFj implements java.io.Serializable {

	private Long id;
	private TbOaMail tbOaMail;
	private String fjTitle;
	private String fjPath;
	private String isDele;
	private String fjSize;

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TB_OA_MAIL_FJ_SEQ")
	@Column(name = "ID", precision = 11, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="MAIL_ID")
	public TbOaMail getTbOaMail() {
		return tbOaMail;
	}

	public void setTbOaMail(TbOaMail tbOaMail) {
		this.tbOaMail = tbOaMail;
	}

	@Column(name="FJ_TITLE")
	public String getFjTitle() {
		return this.fjTitle;
	}

	public void setFjTitle(String fjTitle) {
		this.fjTitle = fjTitle;
	}

	@Column(name="FJ_PATH")
	public String getFjPath() {
		return this.fjPath;
	}

	public void setFjPath(String fjPath) {
		this.fjPath = fjPath;
	}

	@Column(name="IS_DELE", length=1)
	public String getIsDele() {
		return this.isDele;
	}

	public void setIsDele(String isDele) {
		this.isDele = isDele;
	}

	@Column(name="FJ_SIZE", length=10)
	public String getFjSize() {
		return fjSize;
	}

	public void setFjSize(String fjSize) {
		this.fjSize = fjSize;
	}

}